package edu.sctu.nieyu.day20150505.method2;

/**
 * Created by user01 on 2015/5/5.
 */
public class Input {
    public void getMessage(Interface demo){
        Dog1 dog1 = new Dog1();
        dog1.getString();
        demo.setMessage(dog1.color,dog1.size ,dog1.action);

        Dog2 dog2 = new Dog2();
        dog2.getString();
        demo.setMessage(dog2.color,dog2.size ,dog2.action);

        Dog3 dog3 = new Dog3();
        dog3.getString();
        demo.setMessage(dog3.color,dog3.size ,dog3.action);

    }
}
